let riskChart = {
  field: { title: "中字段数量" },
  pii: { title: "中敏感字段数量" },
  risk: { title: "中现存风险数量" },
};
const state = {
  //风险中心状态
  status: [
    { label: "全部", name: "all", prop: "all" },
    { label: "待确认", name: "0", prop: "unconfirmedCount", intro: "安全部识别到有风险但暂未发送工单的数据。" },
    { label: "未治理", name: "10", prop: "ungovernedCount", intro: "已发送工单至治理人，治理未完成的数据。" },
    {
      label: "已治理",
      name: "12",
      prop: "governedCount",
      intro: "已发送工单至治理人，验收通过或申诉通过（已治理）的数据。",
    },
    {
      label: "暂不治理",
      name: "14",
      prop: "tmpNoGovernCount",
      intro: "已发送工单至治理人，申诉通过（暂不治理）的数据。",
    },
    { label: "无需治理", name: "100", prop: "noGovernCount", intro: "已发送工单至治理人，申诉通过（误报）的数据。" },
    { label: "人工关闭", name: "18", prop: "misidentifyCount", intro: "安全部识别到有风险但经运营研判确认为误报或无需治理 。" },
  ],
  hasPii: { 0: "否", 1: "是" },
  typeEnum: { api: "传输风险", store: "存储风险", "audit-api": "自查及审计" },
  //资产详情 ==》关联信息==>下级信息、上级信息
  //showRiskChart：详情 风险信息 数量和echart图是否展示
  asset: {
    mysql: {
      db: { label: "库", belowLabel: "表名", showRiskChart: true, riskChart },
      table: { label: "表", belowLabel: "字段名", showRiskChart: true, riskChart },
      field: { label: "字段", belowLabel: "" },
    },
    es: {
      index: { label: "索引", belowLabel: "字段名", showRiskChart: true, riskChart },
      field: { label: "字段", belowLabel: "" },
    },
    gift: {
      bucket: { label: "", belowLabel: "" },
    },
    api: {
      domain: {
        label: "域名",
        belowLabel: "url",
        showRiskChart: true,
        riskChart: {
          field: { title: "中url数量" },
          pii: { title: "" },
          risk: { title: "中现存风险数量" },
        },
      },
      url: {
        label: "url",
        belowLabel: "",
        showRiskChart: true,
        riskChart: {
          field: { title: "" },
          pii: { title: "" }, //没有title说明不展示
          risk: { title: "中现存风险数量" },
        },
      },
    },
  },
};

const mutations = {};

const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
